package com.suppor.rpc.core.util;

import io.netty.util.concurrent.Promise;

public class RpcFuture<T> {
    private Promise<T> promise;
    private Integer timeOut;

    public RpcFuture(Promise<T> promise, Integer timeOut) {
        this.promise = promise;
        this.timeOut = timeOut;
    }

    public Promise<T> getPromise() {
        return promise;
    }

    public void setPromise(Promise<T> promise) {
        this.promise = promise;
    }

    public Integer getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(Integer timeOut) {
        this.timeOut = timeOut;
    }
}
